import { createStore, applyMiddleware } from 'redux'
import thunk from 'redux-thunk'
import { combineReducers } from 'redux-immutable'

import { app, user } from './modules'

const reducer = combineReducers({ app, user })

const store = createStore(reducer, applyMiddleware(thunk))

export default store